<template>
  <n-anchor
    affix
    listen-to=".v2_body"
    :trigger-top="24"
    :top="0"
    style="z-index: 1; height: 100vh; overflow: auto"
    :bound="24"
  >
    <template v-for="item in cfg.leftval.list">
      <template v-if="item.hide != true">
        <n-anchor-link :title="item.name" :href="`#${item.name}`">
          <template v-for="item2 in item.ms">
            <n-anchor-link
              v-if="item2?.type != 'hide'"
              :title="item2.name"
              :href="`#${item.exname}_${item2.name}`"
            />
          </template>
        </n-anchor-link>
      </template>
    </template>
  </n-anchor>
</template>
<script>
import { cfg } from "@/cfg/cfg.js";
export default {
  setup() {
    return {
      cfg,
    };
  },
};
</script>
